<?php

/**
 * principal actions.
 *
 * @package    plagas
 * @subpackage principal
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class principalActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
      $aud_evento = new aud_eventos();
      if ($this->getUser()->getGuardUser() != null)
      {
          $aud_evento->setUsuario($this->getUser()->getGuardUser()->getUsername());
      }
      else
      {
          $aud_evento->setUsuario('Usuario no registrado');
      }
     $aud_evento->setEventoId(1);
     $aud_evento->save();
  }
}
